package com.example.vue_shop.components.user.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;
import java.util.Map;

/**
 * @author lipengwei
 */
@ApiModel(value = "UserPage", description = "用户的分页对象")
@Data
public class UserPage {
    @ApiModelProperty(value = "页数", name = "pageNum", dataType = "int",
            example = "1")
    private int pageNum = 1;
    @ApiModelProperty(value = "每页显示数量", name = "pageSize", dataType = "int",
            example = "10")
    private int pageSize = 10;
    @ApiModelProperty(value = "数据的总数", name = "total", dataType = "int",
            example = "10")
    private int total = 0;
    @ApiModelProperty(value = "用户集合", name = "userList", dataType = "List",
            example = "[{'username':'zhangsan','password':'123456',"
                    + "'userStatus':'0'}]")
    private List<Map<String, Object>> userList;
}
